package app.auto.runner.base.intf;

import android.app.Activity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by litli on 2017/6/23.
 */

public abstract class FunCallback<S, F, C> {
    public Object result;

    public Object getResult() {
        return result;
    }

    public void setResult(Object result) {
        this.result = result;
    }

    public void simpleRun(Object aty) {
    }


    public void onSuccessConnected(S result) {
        onSuccess(result, object);
    }

    ;

    public void onFailureConnected(F result) {
        onFailure(result, object);
    }

    ;

    public void onCallbackConnected(C result) {
        onCallback(result, object);
    }

    ;

    public void onSuccess(S result, Object object) {
    }

    ;

    public void onFailure(F result, Object object) {
    }

    ;

    public void onCallback(C result, Object object) {
    }

    ;
    private Object object = new Object();

    public Object getObject() {
        return object;
    }



    public FunCallback setParam(Object object) {
        this.object = object;
        return this;
    }
}
